Note: This statement is named String Equals in the Add Statement dialog box.
Returns True or False to indicate if two strings match.
Syntax
StrEquals("FirstString", "SecondString", IsCaseSensitive)
Arguments
| Argument | Description |
|---|---|
| FirstString | First string. |
| SecondString | Second string. |
| IsCaseSensitive | Case sensitive comparison. True matches the string case. False ignores the case. If not specified, True is used. |
Return value
| Value | Description |
|---|---|
| True | Strings match. |
| False | Strings do not match. |
Example
myStr1 = "WysiCorp"
myStr2 = "wysicorp"
If (StrEquals(myStr1, myStr2, True)) Then
PrintLn("Strings match")
Else
PrintLn("Strings do not match")
End If